resize
resize(input: any[] | Mat | Tensor, sizes: any[], defaultvalue : Number) : any[] | Mat | Tensor
param input
a JS array, matrix or tensor, the construct to be resized
param sizes
a 1-d array representing the size to resize to
param defaultvalue
a number for filling the remaining empty spaces
returns - any[] | Mat | Tensor
- a resized JS array, matrix or tensor with the corresponding size given in sizes
sizes should be like [2, 2, 2] or [2, -1]. Here, -1 means automatically matching.